<?php
defined('BY_JYA') or exit('error');
$list = array(
	array('title'=>'办公工具','list'=>array(
		array('name'=>'jy_yxaiseo','title'=>'AI软创作工具','desc'=>'营销网的AI软创作工具','icon'=>'',),
		array('name'=>'jy_yxhelp','title'=>'办公助手','desc'=>'日常工作量化,引导','icon'=>'',),
		array('name'=>'jy_hetong','title'=>'电子合同','desc'=>'公司在线签合同','icon'=>'',),
	)),
	array('title'=>'业务扩展','list'=>array(
		array('name'=>'jy_weishop','title'=>'商城系统','desc'=>'大部分企业要用到','icon'=>'',),
		array('name'=>'jy_scrm','title'=>'小云SCRM','desc'=>'企业微信CRM解决方案','icon'=>'',),
		array('name'=>'jy_erp','title'=>'好生意进销存ERP','desc'=>'ERP进销存管理系统','icon'=>'',),
		array('name'=>'jy_yxgz','title'=>'员工工资绩效','desc'=>'员工工资绩效系统','icon'=>'',),
		array('name'=>'jy_yxerp','title'=>'营销网进销存ERP','desc'=>'营销网的进销存ERP','icon'=>'',),
		array('name'=>'jy_yxfrom','title'=>'营销网售后工单','desc'=>'营销网的售后工单系统','icon'=>'',),
		array('name'=>'jy_yxgoodserpfw','title'=>'商品经销防伪ERP','desc'=>'营销网的防伪ERP','icon'=>'',),
		array('name'=>'jy_xiaoeknow','title'=>'在线视频课程','desc'=>'在线视频/图文课程展示','icon'=>'',),
	)),
	array('title'=>'销售工具','list'=>array(
		array('name'=>'jy_yxkabao','title'=>'YXW线下卡片','desc'=>'线下卡包/卡密/宣传单系统','icon'=>'',),
		array('name'=>'jy_commission','title'=>'微客分销','desc'=>'网红播主代销方案','icon'=>'',),
	)),
	array('title'=>'活动工具','list'=>array(
		array('name'=>'jy_adbaoming','title'=>'活动报名','desc'=>'报名活动发起工具','icon'=>'',),
		array('name'=>'jy_bigwheel','title'=>'大转盘','desc'=>'随时随地，大转盘','icon'=>''),
		array('name'=>'jy_red_rain','title'=>'红包雨','desc'=>'随时随地，触发红包雨','icon'=>''),
		array('name'=>'jy_red_pin','title'=>'拼红包','desc'=>'随时随地，拼红包','icon'=>''),
		array('name'=>'jy_manghe','title'=>'AI抽盲盒系统','desc'=>'随时随地，AI抽盲盒系统','icon'=>''),
		array('name'=>'jy_getred','title'=>'抢红包有礼活动','desc'=>'抢红包有礼活动','icon'=>''),
		array('name'=>'jy_nongren','title'=>'养鸡农场游戏','desc'=>'带分销属性，激活购买','icon'=>'',),
		array('name'=>'jy_yangjidan','title'=>'租养青年蛋鸡系统','desc'=>'蛋鸡+成鸡系统','icon'=>'',),
		array('name'=>'jy_jianghu','title'=>'笑傲江湖分销','desc'=>'闯江湖，拉帮结派，赚积分','icon'=>'',),
	)),
	array('title'=>'宣传工具','list'=>array(
		array('name'=>'jy_imgs','title'=>'图书画册图片集','desc'=>'某产品宣传手册','icon'=>'',),
		array('name'=>'jy_adtext','title'=>'落地宣传页','desc'=>'线上发传单','icon'=>'',),
	)),
	array('title'=>'品牌粘性','list'=>array(
		array('name'=>'jy_help','title'=>'问答帮助中心','desc'=>'问答帮助中心','icon'=>'',),
		array('name'=>'jy_goodswenjuan','title'=>'商品满意度问卷调查','desc'=>'阶段性商品问卷粘性','icon'=>'',),
		array('name'=>'jy_yxworkwenjuan','title'=>'YXW员工调查问卷','desc'=>'阶段性员工问卷粘性','icon'=>'',),
		array('name'=>'jy_wenjuan','title'=>'普通问卷调查','desc'=>'阶段性常规问卷粘性','icon'=>'',),
		array('name'=>'jy_feedback','title'=>'投诉建议','desc'=>'投诉建议/意见收集','icon'=>'',),
	)),
	array('title'=>'其他工具','list'=>array(
		array('name'=>'jy_aikefu','title'=>'商城智能AI客服','desc'=>'每个企业都需要','icon'=>'',),
		array('name'=>'jy_invoice','title'=>'在线开发票(电子票夹)','desc'=>'在线开发票(电子票夹)','icon'=>'',),
		array('name'=>'jy_fpapi','title'=>'数电发票开票API接口','desc'=>'数电发票开票API接口','icon'=>'',),
	)),
);
//判断是否基本设置了
$inplugins=array();
$noplugins=array();
foreach($list as $k=>&$type){
		foreach($type['list'] as $i=>&$p){
			$install = check_permission($p['name']);
			$plugin=pdo_get('core_plugins',array('name'=>$p['name']),array('title','image','hide'));
			if($plugin['hide']){
				unset($type['list'][$i]);
			}
			if($install){
				$p['title']=$p['name']!='jy_weishop' && $plugin['title']?$plugin['title']:$p['title'];
				$p['image']=$p['image']?:$plugin['image'];
				$p['is_install'] = 1;
				$p['is_show'] = 1;
			}else{
				$noplugins[]=$p['name'];
				//unset($type['list'][$i]);
				$p['is_install'] = 0;
				$p['is_show'] = 0;
				if($_SESSION['isfounder']){
					$p['is_show'] = 1;
				}
			}
		}
}
return  $list;
?>